#coding:utf-8

# 这个文件用来跟graphviz对接，生成视觉化的Graphviz文件😄，然后用自己的经验去判断大概哪些函数属于一块的
# 已经进入架构师的领域了！

class GraphvizCircleDocument():
    name = ""
    size = ""
    nodes = []
    lines = []
    def insert_node(self, name, shape="circle"):
        pass
    def insert_line(self, _from, _to, label=""):
        pass
    def set_size(self, size):
        self.size = size
    def marshall(self):
        result = ""
        firstline = "%s %s {\n" % ("digraph", self.name)
        sizeline = """size=;"%s"\n""" % self.size
        nodelines = ""
        for 